package com.boot.domain;

import org.springframework.stereotype.Component;

/**
 * @author
 * @date 2025-07-27
 * @Description 使用注解+xml 配置注入spring 容器
 */
@Component
public class Car {
    private Integer cno;
    private String cname;
    private String color;
    private Double price;


    public Integer getCno() {
        return cno;
    }

    public void setCno(Integer cno) {
        this.cno = cno;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }
}
